package com.evil.account.service;

import com.evil.account.pojo.entity.Enterprise;
import com.evil.account.pojo.entity.User;
import com.evil.account.pojo.entity.UserEnterprise;
import com.evil.common.account.bo.AuthUserBO;

/**
 * @author liyang
 * @date 2022-08-08 00:00
 */
public interface AuthUserService {

    /**
     * 构建AuthUserBO
     *
     * @param user       user
     * @param token      token
     * @param enterprise enterprise
     * @return AuthUserBO
     */
    AuthUserBO getAuthUserBaseInfo(User user, String token, Enterprise enterprise);

    /**
     * 修改用户默认企业
     *
     * @param userEnterprise userEnterprise
     */
    void modifyDefaultEnterprise(UserEnterprise userEnterprise);
}
